package com.zzsy.shoppingpro.base;

import android.app.Activity;
import android.app.ActivityManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.zzsy.shoppingpro.R;
import com.zzsy.shoppingpro.utils.ActivityCollector;

/**
 * 基类进行刷新
 * */
public class BaseActivity extends AppCompatActivity {

    protected interface IRefreshTag{
        int IS_REFRESH_DATA =1;
        int IS_LOAD_MORE_DATA = 2;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_base);

        ActivityCollector.addActivity(this);

    }

    @Override
    protected void onResume() {
        super.onResume();

    }

    /**
     * 当前页面销毁 将从任务栈中进行移除操作
     * */
    @Override
    protected void onDestroy() {
        super.onDestroy();
        ActivityCollector.removeActivity(this);
    }
}
